package com.hb.core.pojo.project.calibration.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 中标结果公示/公告表
 * </p>
 *
 * @author zhongdl
 * @since 2021-12-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_bid_win_result")
@ApiModel(value="TradeBidWinResult对象", description="中标结果公示/公告表")
public class BidWinResult extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父级id(首次发公告的id)")
    private Long parentId;

    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @ApiModelProperty(value = "公告性质 1.首次公告 2 变更公告")
    private Integer noticeNature;

    @ApiModelProperty(value = "公告标题")
    private String noticeTitle;

    @ApiModelProperty(value = "公告内容")
    private String noticeContent;

    @ApiModelProperty(value = "公告媒介")
    private String medium;

    @ApiModelProperty(value = "附件")
    private Attachments attachment;

    @ApiModelProperty(value = "公告发布状态 1 已发布 2 未发布 3已锁定 4已保存")
    private Integer deployStatus;

    @ApiModelProperty(value = "公告发布时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deployTime;

    @ApiModelProperty(value = "是否推送")
    private Integer pushFlag;

    @ApiModelProperty(value = "企业id")
    private Long orgId;

    @ApiModelProperty(value = "公告内容附件")
    private Attachments contentUrl;

    @ApiModelProperty(value = "中标通知书编号")
    private String code;

    @ApiModelProperty(value = "接收人")
    private String receiver;

    @ApiModelProperty(value = "中标日期")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  successfulDate;

    @ApiModelProperty(value = "是否收取招标代理服务费")
    private String chargeFlag;

    @ApiModelProperty(value = "收取对象(1:中标人 2:招标人)")
    private String chargeObject;

    @ApiModelProperty(value = "收取方式")
    private String chargePattern;

    @ApiModelProperty(value = "收取方式子集")
    private String chargePatternChild;

    @ApiModelProperty(value = "代理服务费金额")
    private BigDecimal chargeAmount;

    @ApiModelProperty(value = "状态(0:已保存 1:审核通过 2:审核中 3:审核不通过 4:已发出)")
    private String status;

    @ApiModelProperty(value = "签过章的公告文件")
    private Attachments signFile;

    @ApiModelProperty(value = "未签章的pdf")
    private Attachments contentPdf;

    @ApiModelProperty(value = "点击量")
    private Integer clickCount;

}
